'use strict';


const db = uniCloud.database();
const dbCmd = db.command // 取指令

async function homePage(event){
	// 获取banner 图
	
	let res = await db.collection('banner').limit(5).get();
	
	return {
		code: 0,
		msg:'',
		data: res.data
	}
}

exports.main = homePage;